﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;


/**
 *
 * @author eladh, alaah
 */

namespace Windows_System_Snapshot
{
    class Command
    {
        //This is the customized data type to hold registry OR command data

        //Instance variables
        private String proprtyName; 
        private String command;
        private String arguments;
        private String type;
        private String href;
        private String anchor;

        //Class Constructor
        public Command(String proprtyName, String command, String arguments, String type)
        {
            this.proprtyName = proprtyName; 
            this.command = command;
            this.arguments = arguments;
            this.anchor = Regex.Replace(proprtyName, " ", "_");
            this.href = "<a href=\"#" + this.anchor + "\">" + proprtyName + "</a>";
            this.type = type;
        }

        //Name Getter
        public String getName()
        {
            return this.proprtyName;
        }

        //command Getter
        public String getCommand()
        {
            return this.command;
        }
        // argument getter
        public String getArguments()
        {
            return this.arguments;
        }

        //Anchor Getter
        public String getAnchor()
        {
            return anchor;
        }

        //href Getter
        public String getHref()
        {
            return href;
        }

        // command type Getter
        public String getType()
        {
            return type;
        }

    }
}
